package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.takebal.takebalblacklist.TakeBalBlacklistQuery;
import com.uzai.console.entity.TakeBalBlacklist;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface TakeBalBlacklistMapper {
    int deleteById(@Param("id") Long id, @Param("merId") Long merId);

    int insert(TakeBalBlacklist record);

    int insertSelective(TakeBalBlacklist record);

    TakeBalBlacklist selectById(@Param("id") Long id, @Param("merId") Long merId);

    TakeBalBlacklist selectByUserId(@Param("userId") Long userId, @Param("merId") Long merId);

    TakeBalBlacklist selectByAlipayAccount(@Param("alipayAccount") String alipayAccount, @Param("merId") Long merId);

    int updateByIdSelective(TakeBalBlacklist record);

    int updateById(TakeBalBlacklist record);

    /**
     * 分页查询
     *
     * @param page
     * @param query
     * @return
     */
    ArrayList<TakeBalBlacklist> findByList(Page<TakeBalBlacklist> page, @Param("query") TakeBalBlacklistQuery query);

    /**
     * 查询所有
     *
     * @param query
     * @return
     */
    ArrayList<TakeBalBlacklist> findByList(@Param("query") TakeBalBlacklistQuery query);
}